package bullsora.kindlerss.controllers;

import com.bullsora.kindlerss.business.CleanupService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Sorin Buliarca
 */
@Controller
public class CleanupController {

  private CleanupService cleanupService;

  @RequestMapping(value = "/cleanup")
  public String doCleanup() {
    cleanupService.doCleanup();
    return "empty";
  }

  public CleanupService getCleanupService() {
    return cleanupService;
  }

  public void setCleanupService(CleanupService cleanupService) {
    this.cleanupService = cleanupService;
  }
}
